package com.guoxin.chapter7.statetest3;

public class Run {
	
	// NEW
	// RUNNABLE
	// TERMINATED
	// BLACKED
	// WAITING
	// TIME_WAITING
	public static void main(String[] args) throws InterruptedException {
		Thread1 t1 = new Thread1();
		t1.setName("a");
		t1.start();
		Thread2 t2 = new Thread2();
		t2.setName("b");
		t2.start();
		Thread.sleep(1000);
		System.out.println("main 方法中的t2状态：" + t2.getState());
	}
}
